package cn.org.xuanzp.common.command.impl;

import cn.org.xuanzp.common.command.Command;
import cn.org.xuanzp.common.command.CommandType;
import io.netty.channel.ChannelHandlerContext;

/**
 * @Classname LoginCommand
 * @Description TODO
 * @Version 1.0.0
 * @Date 2024/9/25 23:00
 * @Created by xuanzp
 */
public class LoginCommand  extends Command {

    private static final long serialVersionUID = 1L;

    private ChannelHandlerContext ctx;

    private String userName;
    private String password;

    @Override
    public CommandType getType() {
        return CommandType.LOGIN;
    }

    public ChannelHandlerContext getCtx() {
        return ctx;
    }

    public void setCtx(ChannelHandlerContext ctx) {
        this.ctx = ctx;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
